package com.hlz.fastnote

import java.text.SimpleDateFormat
import java.util.*


fun Long?.time(format:String):String{
    if (this==null)return ""
    val date = Date(this)
    val f = SimpleDateFormat(format)
    return f.format(date)

}